home *** CD-ROM | disk | FTP | other *** search
/ Creative Review 30 / Creative-Review-CD-ROM-30.iso / pc / image / image.dir / 00290_Script_Main Handlers < prev    next >
Text File  |  1997-09-29  |  5KB  |  129 lines

  1. on unPuppet actionList
  2.   repeat with i = 1 to the number of items of actionList
  3.     put value(item i of actionList) into actionItem
  4.     puppetSprite actionItem, false
  5.   end repeat
  6. end unPuppet
  7.  
  8. on showObjects actionList
  9.   repeat with i = 1 to the number of items of actionList
  10.     put value(item i of actionList) into actionItem
  11.     set the visible of sprite actionItem to true
  12.   end repeat
  13. end showObjects
  14.  
  15.  
  16. on rollOver1 actionList
  17.   global dest
  18.   put the number of items of actionList into actionCount
  19.   repeat with i = 1 to (actionCount/2)
  20.     put value(item ((i*2)-1) of actionList) into actionItem
  21.     put item (i*2) of actionList into actionDest
  22.     if rollOver(actionItem) then
  23.       set the visible of sprite actionItem to true
  24.       put actionDest into dest
  25.     end if
  26.   end repeat
  27. end rollOver1
  28.  
  29. on rollOver2 actionList
  30.   global dest
  31.   put the number of items of actionList into actionCount
  32.   repeat with i = 1 to (actionCount/3)
  33.     put value(item ((i*3)-2) of actionList) into actionItem1
  34.     put value(item ((i*3)-1) of actionList) into actionItem2
  35.     put item (i*3) of actionList into actionDest
  36.     if (rollOver(actionItem1) or rollOver(actionItem2)) then
  37.       set the visible of sprite actionItem1 to true
  38.       set the visible of sprite actionItem2 to true
  39.       put actionDest into dest
  40.     end if
  41.   end repeat
  42. end rollOver2
  43.  
  44. on hideObjects actionList
  45.   repeat with i = 1 to the number of items of actionList
  46.     put value(item i of actionList) into actionItem
  47.     set the visible of sprite actionItem to false
  48.   end repeat
  49. end hideObjects
  50.  
  51. on rollDisplay2 actionList
  52.   put the number of items of actionList into actionCount
  53.   repeat with i = 1 to (actionCount/3)
  54.     put value(item ((i*3)-2) of actionList) into actionItem1
  55.     put value(item ((i*3)-1) of actionList) into actionItem2
  56.     put value(item (i*3) of actionList) into actionItem3
  57.     if (rollOver(actionItem1) or rollOver(actionItem2)) then
  58.       set the visible of sprite actionItem1 to true
  59.       set the visible of sprite actionItem2 to true
  60.       set the visible of sprite actionItem3 to true
  61.     end if
  62.   end repeat
  63. end rollDisplay2
  64.  
  65. on rollDisplay1 actionList
  66.   put the number of items of actionList into actionCount
  67.   repeat with i = 1 to (actionCount/2)
  68.     put value(item ((i*2)-1) of actionList) into actionItem1
  69.     put value(item (i*2) of actionList) into actionItem2
  70.     if rollOver(actionItem1) then
  71.       set the visible of sprite actionItem1 to true
  72.       set the visible of sprite actionItem2 to true
  73.     end if
  74.   end repeat
  75. end rollDisplay1
  76.  
  77. on rollOverDisp2 actionList
  78.   global dest
  79.   put the number of items of actionList into actionCount
  80.   repeat with i = 1 to (actionCount/3)
  81.     put value(item ((i*3)-2) of actionList) into actionItem1
  82.     put value(item ((i*3)-1) of actionList) into actionItem2
  83.     put item (i*3) of actionList into actionDest
  84.     if rollOver(actionItem1) then
  85.       set the visible of sprite actionItem1 to true
  86.       set the visible of sprite actionItem2 to true
  87.       put actionDest into dest
  88.     end if
  89.   end repeat
  90. end rollOverDisp2
  91.  
  92. on rollOverDisp3 actionList
  93.   put the number of items of actionList into actionCount
  94.   repeat with i = 1 to (actionCount/4)
  95.     put value(item ((i*4)-3) of actionList) into actionItem1
  96.     put value(item ((i*4)-2) of actionList) into actionItem2
  97.     put value(item ((i*4)-1) of actionList) into actionItem3
  98.     put value(item (i*4) of actionList) into actionItem4
  99.     if rollOver(actionItem1) then
  100.       set the visible of sprite actionItem2 to true
  101.       set the visible of sprite actionItem3 to true
  102.       set the visible of sprite actionItem4 to true
  103.     end if
  104.   end repeat
  105. end rollOverDisp2
  106.  
  107. on rollOverInk actionList
  108.   global dest
  109.   put the number of items of actionList into actionCount
  110.   repeat with i = 1 to (actionCount/3)
  111.     put value(item ((i*3)-2) of actionList) into actionItem1
  112.     put value(item ((i*3)-1) of actionList) into actionItem2
  113.     put item (i*3) of actionList into actionDest
  114.     if (rollOver(actionItem1) or rollOver(actionItem2)) then
  115.       puppetSprite actionItem1, true
  116.       set the ink of sprite actionItem1 to 0
  117.       set the visible of sprite actionItem2 to true
  118.       updateStage
  119.       put actionDest into dest
  120.     end if
  121.   end repeat
  122. end rollOverInk
  123.  
  124. on inkOut actionList
  125.   repeat with i = 1 to the number of items of actionList
  126.     put value(item i of actionList) into actionItem
  127.     set the ink of sprite actionItem to 38
  128.   end repeat
  129. end inkOut